<template>
  <div class="XtxTabsPanel" v-show="name===activeName" >
    <slot />
  </div>
</template>
<script>
import { inject } from 'vue'
export default {
  name:'XtxTabsPanel',
  props:{
    label:{
      type: String,
      default:''
    },
    name:{
      type:[String, Number],
      default:''
    }
  },
  setup(props) {
    const activeName = inject('activeName')
    return { activeName }
  }
}
</script>

<style lang="scss" scoped>

</style>